package com.roger.mybatisplus.demo.controller;

import lombok.Data;

import java.util.List;

@Data
public class QueryResult {
    private int resultCode;
    private String message;
    private String data;
    private List<?> dataList;
    private boolean result;
    private Long totalSize;


    public QueryResult(boolean result){
        this.result = result;
    }

    public QueryResult(boolean result, int resultCode){
        this.result = result;
        this.resultCode = resultCode;
    }

    public QueryResult(boolean result, int resultCode , String message){
        this.result = result;
        this.resultCode = resultCode;
        this.message = message;
    }

    public QueryResult(){}
}
